<div class="leftcolumn">
{include file="common/common_leftcolumn.tpl"}
</div>

<div class="maincolumn">
{if $CONTENT.mainpart == 'image'}
{include file="main/blocks/main_block_gallery_image.tpl"}

{elseif $CONTENT.mainpart == 'album'}
{include file="main/blocks/main_block_gallery_album.tpl"}

{elseif $CONTENT.mainpart == 'category'}
{include file="main/blocks/main_block_gallery_category.tpl"}

{else}
{include file="main/blocks/main_block_gallery_albums.tpl"}

{/if}
</div>